﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace Anagramme.Server
{
    internal static class NativeMethods
    {
        [DllImport("user32.dll", CharSet = CharSet.Unicode)]
        internal static extern IntPtr FindWindow(string lpClassName, string lpWindowName);

        [DllImport("user32.dll")]
        [return: MarshalAs(UnmanagedType.Bool)]
        internal static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);

        //[DllImport("Kernel32")]
        //private static extern bool SetConsoleCtrlHandler(EventHandler handler, bool add);

        //[DllImport("User32.Dll", EntryPoint = "PostMessageA")]
        //private static extern bool PostMessage(IntPtr hWnd, uint msg, int wParam, int lParam);
    }
}
